<script>
/**
 * 通过action触发其所有者组件的事件，可用于内部功能的触发
 */
import modalActionBase from "../actionBase";
export default {
  extends: modalActionBase,
  data() {
    return {
      buttonType: "success"
    };
  },
  methods: {
    actionTrigger(id, data, index) {
      this.$owner.$emit("action-event-trigger", {
        code: this.model.code,
        id,
        data,
        index
      });
    }
  },
  created() {}
};
</script>
